docs: Update annotations for WidgetClass.query_action()
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 15 Mar 2021 13:48:35 +0000 (13:48 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 15 Mar 2021 13:48:35 +0000 (13:48 +0000)
The parameter_type and property_name out arguments can be set to NULL.

Fixes: #3757
gtk/gtkwidget.c

index 520e15edd98e30b994b2ee766e5bf7bfcd290248..3f641a6d08d6360c6bf1cddab8dbd5405413a9c4 100644 (file)
@@ -12632,15 +12632,15 @@ gtk_widget_action_set_enabled (GtkWidget  *widget,
 
 /**
  * gtk_widget_class_query_action:
- * @widget_class: a `GtkWidget`Class
+ * @widget_class: a `GtkWidget` class
  * @index_: position of the action to query
  * @owner: (out): return location for the type where the action was defined
  * @action_name: (out): return location for the action name
- * @parameter_type: (out): return location for the parameter type
- * @property_name: (out): return location for the property name
+ * @parameter_type: (out) (nullable): return location for the parameter type
+ * @property_name: (out) (nullable): return location for the property name
  *
  * Queries the actions that have been installed for
- * a widget class using gtk_widget_class_install_action()
+ * a widget class using [method@Gtk.WidgetClass.install_action]
  * during class initialization.
  *
  * Note that this function will also return actions defined